package cn.lili.modules.order.order.entity.dos;

import cn.lili.mybatis.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 供应链支付的异常订单记录
 * @TableName li_order_item_error
 */
@TableName(value ="li_order_item_error")
@Data
@ApiModel(value = "供应链订单异常流水")
@NoArgsConstructor
public class OrderItemError extends BaseEntity implements Serializable {

    /**
     * 异常订单号，订单=》子订单号
     */
    private String itemOrderSn;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String area;

    /**
     * 县
     */
    private String street;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 收货人
     */
    private String consignee;

    /**
     * 备注
     */
    private String description;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * sku_id
     */
    private String skuId;

    /**
     * 供应链sku_id
     */
    private String thirdPartyPlatformId;

    /**
     * 购买数量
     */
    private Integer orderNum;

    /**
     * 重试次数
     */
    private Integer reCount;

    private String msg;


    @CreatedDate
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "删除标志 true/false 删除/未删除", hidden = true)
    private Boolean deleteFlag;
}